package com.lcxw.hxzbadmin.service.configservice;

import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Component;
import com.lcxw.hxzbadmin.dao.configmapper.AnnounceMapper;
import com.lcxw.hxzbadmin.entity.configbean.YwpdAnnounce;

@Component
public class AnnounceService {

    @Resource
    AnnounceMapper announceMapper;

    public int deleteByPrimaryKey(Integer id){
        return announceMapper.deleteByPrimaryKey(id);
    }

    public int insert(YwpdAnnounce record){
        return announceMapper.insert(record);
    }

    public YwpdAnnounce selectById(int id){
        return announceMapper.selectById(id);
    }

    public List<YwpdAnnounce> selectAll(){
        return announceMapper.selectAll();
    }

    public int updateByPrimaryKey(YwpdAnnounce record){
        return announceMapper.updateByPrimaryKey(record);
    }
}
